package com.fw.kafka.listen;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.kafka.annotation.KafkaListener;
import org.springframework.stereotype.Component;

/**
 * @Author:yanwei
 * @Date: 2020/9/19 - 22:22
 */
@Component

public class CustomerListen {
    private static final Logger log = LoggerFactory.getLogger(CustomerListen.class);

    /**
     * id 此监听器唯一占位符
     *
     * @param mes
     */
    @KafkaListener(id = "fu_boot_id",topics = "fw_boot",groupId = "fw_boot_group.ss")
    public void listener(String mes) {
        log.info(mes);
    }
}
